﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using System.ComponentModel;

namespace KerriganDataContract.Evaluation
{

    [DataContract]
    public class CustomerEvaluationDC : INotifyPropertyChanged
    {



        private string _comment;

        private int _mark;

        [DataMember]
        public Int32 Id { get; set; }

        [DataMember]
        public int Mark
        {
            get
            {
                return this._mark;
            }
            set
            {
                this._mark = value;
                OnPropertyChanged("Mark");
            }
        }

        [DataMember]
        public string Comment
        {
            get
            {
                return this._comment;
            }
            set
            {
                this._comment = value;
                OnPropertyChanged("Comment");
            }
        }

        [DataMember]
        public DateTime Date { get; set; }


        public event PropertyChangedEventHandler PropertyChanged;

        private void OnPropertyChanged(string property)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(property));
            }
        }
    }
}
